import * as actionTypes from '../actionType';

const baseAction = type => data =>{
	return {
		type,
		data
	};
};
export const userAction = baseAction(actionTypes.USER);

export const permissionsAction = baseAction(actionTypes.PERMISSIONS);

export const menuAction = baseAction(actionTypes.TREE_LIST);

export const axiosEnqueueAction = baseAction(actionTypes.AXIOS_ENQUEUE);
